gtk4.git
12 years agoSet an accessible name on menu buttons
Matthias Clasen [Fri, 20 Dec 2013 14:05:43 +0000 (09:05 -0500)]
Set an accessible name on menu buttons

These commonly have just an image in them, so lets at least
call them 'Menu'.

12 years agoUpdated Greek translation
Dimitris Spingos [Fri, 20 Dec 2013 13:27:53 +0000 (15:27 +0200)]
Updated Greek translation

12 years agoUpdated Russian translation
Stas Solovey [Thu, 19 Dec 2013 19:10:26 +0000 (23:10 +0400)]
Updated Russian translation

12 years agoGtkPlacesSidebar: Don't show desktop if its home
Matthias Clasen [Thu, 19 Dec 2013 16:22:02 +0000 (11:22 -0500)]
GtkPlacesSidebar: Don't show desktop if its home

We go to extra length to set the desktop_uri to NULL when
desktop == home, but then we were adding the (non-functional)
place item anyway. Don't do that.

12 years agoGtkPlacesSidebar: avoid a crash
Matthias Clasen [Thu, 19 Dec 2013 13:16:30 +0000 (08:16 -0500)]
GtkPlacesSidebar: avoid a crash

Be more careful when comparing uris during DND - they may
be NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=720264

12 years agocell-renderer: Check for NULL return in vfunc start_editing()
Jonh Wendell [Mon, 16 Dec 2013 19:31:50 +0000 (17:31 -0200)]
cell-renderer: Check for NULL return in vfunc start_editing()

This virtual function may return NULL, so, let's check if that's
the case and exit the function apropriately.

https://bugzilla.gnome.org/show_bug.cgi?id=720554

12 years agoprinting: Don't leak http connection to CUPS
Marek Kasik [Mon, 16 Dec 2013 15:44:58 +0000 (16:44 +0100)]
printing: Don't leak http connection to CUPS

Close http connection to CUPS after execution
of request which created it.

https://bugzilla.gnome.org/show_bug.cgi?id=720535

12 years agoUpdated Galician translations
Fran Diéguez [Thu, 19 Dec 2013 00:41:14 +0000 (01:41 +0100)]
Updated Galician translations

12 years agogdkwindow: Don't add the same window to "update_windows" twice
Marek Kasik [Wed, 18 Dec 2013 11:23:28 +0000 (12:23 +0100)]
gdkwindow: Don't add the same window to "update_windows" twice

This prevents passing of such window to another GMainLoop.

https://bugzilla.gnome.org/show_bug.cgi?id=711552

12 years agoGtkColorSelection: Don't leak a context menu
Matthias Clasen [Wed, 18 Dec 2013 04:26:16 +0000 (23:26 -0500)]
GtkColorSelection: Don't leak a context menu

This was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=720401

12 years agoFix a compiler warning
Matthias Clasen [Wed, 18 Dec 2013 04:25:21 +0000 (23:25 -0500)]
Fix a compiler warning

12 years agoGtkAppChoserWidget: Don't leak the context menu
Matthias Clasen [Wed, 18 Dec 2013 04:20:34 +0000 (23:20 -0500)]
GtkAppChoserWidget: Don't leak the context menu

This was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=720401

12 years agoUpdate config.h.win32.in for Visual C++ 2013
Chun-wei Fan [Wed, 18 Dec 2013 03:41:53 +0000 (11:41 +0800)]
Update config.h.win32.in for Visual C++ 2013

A number of C99 math.h functions, along with inttypes.h were included for
Visual C++ 2013, along with much improved C99 capabilities, so update
config.h.win32.in to reflect this.

12 years agoRemove an unneeded include
Matthias Clasen [Wed, 18 Dec 2013 03:41:27 +0000 (22:41 -0500)]
Remove an unneeded include

12 years agoGtkAppChooserDialog: Add a 'Software' button
Matthias Clasen [Wed, 18 Dec 2013 02:23:05 +0000 (21:23 -0500)]
GtkAppChooserDialog: Add a 'Software' button

Add a simple button that launches GNOME Software.

12 years agoGtkAppChooser: Drop PackageKit integration
Matthias Clasen [Wed, 18 Dec 2013 01:49:28 +0000 (20:49 -0500)]
GtkAppChooser: Drop PackageKit integration

This will come back in a simpler form in the next
commit.

12 years agoGtkAppChooserWidget: Monitor installed applications
Matthias Clasen [Wed, 18 Dec 2013 01:34:37 +0000 (20:34 -0500)]
GtkAppChooserWidget: Monitor installed applications

This uses the new GAppInfoMonitor object in GIO, which provides
change notification when the set of installed applications changes.

12 years agoGtkStyleContext: Invalidate contexts with a path
Volker Sobek [Tue, 17 Dec 2013 23:04:59 +0000 (00:04 +0100)]
GtkStyleContext: Invalidate contexts with a path

Fixes a tiny typo in commit f51c9d4154ba1ce4f20f7c4b7f705fe2756cb8ab
which manifested itself in GtkSpinButton's panels being drawn with an
incorrect, not updated state.

This patch took me more hours than you might think! :P

https://bugzilla.gnome.org/show_bug.cgi?id=709491

12 years agoBump version
Matthias Clasen [Tue, 17 Dec 2013 12:55:19 +0000 (07:55 -0500)]
Bump version

12 years ago3.11.3
Matthias Clasen [Tue, 17 Dec 2013 11:13:55 +0000 (06:13 -0500)]
3.11.3

12 years agoFix extraction of some translatable strings
Matthias Clasen [Tue, 17 Dec 2013 12:35:10 +0000 (07:35 -0500)]
Fix extraction of some translatable strings

The reason why some of the strings in gtkprintunixdialog.ui
were missing is that we did not extract translatable string
from <item> elements. Fix that.

12 years agoFix make dist
Matthias Clasen [Tue, 17 Dec 2013 11:42:58 +0000 (06:42 -0500)]
Fix make dist

12 years ago[l10n] Updated Italian translation.
Milo Casagrande [Tue, 17 Dec 2013 08:23:31 +0000 (09:23 +0100)]
[l10n] Updated Italian translation.

12 years agoFix accessibility tests for real
Matthias Clasen [Tue, 17 Dec 2013 01:39:00 +0000 (20:39 -0500)]
Fix accessibility tests for real

The character count had to be updated as well.

12 years agoGtkHeaderBar: Fix allocation of start and end boxes
Matthias Clasen [Tue, 17 Dec 2013 01:36:22 +0000 (20:36 -0500)]
GtkHeaderBar: Fix allocation of start and end boxes

We were giving these boxes too much width, consuming what
was supposed to be the spacing between the boxes and the
other content of the header bar.

12 years agotesttitlebar: Add custom content
Matthias Clasen [Tue, 17 Dec 2013 01:35:23 +0000 (20:35 -0500)]
testtitlebar: Add custom content

This will help in tracking down size allocation issues
in GtkHeaderBar.

12 years agoFix a11y testsuite for about dialog changes
William Jon McCann [Mon, 16 Dec 2013 19:53:30 +0000 (14:53 -0500)]
Fix a11y testsuite for about dialog changes

12 years agogtkapplication: fix inhibit
Ryan Lortie [Mon, 16 Dec 2013 19:37:44 +0000 (14:37 -0500)]
gtkapplication: fix inhibit

The big refactor contained a small mistake that broke inhibiting.  Fix it.

12 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 16 Dec 2013 19:26:50 +0000 (20:26 +0100)]
Updated POTFILES.in

12 years agoRefactor GtkApplication
Ryan Lortie [Mon, 16 Dec 2013 14:32:13 +0000 (09:32 -0500)]
Refactor GtkApplication

gtkapplication.c has turned into a bit of an #ifdef mess over time, and
many of the current checks are incorrect.  As an example, if you build
Gtk for wayland, and exclude the X11 backend, much of the functionality
required by wayland (such as exporting menu models) will be disabled.

Solve that by introducing a backend mechanism to GtkApplication (named
GtkApplicationImpl) similar to the one in GApplication.  Add backends
for Wayland, X11 and Quartz, with X11 and Wayland sharing a common
'DBus' superclass.

                             GtkApplicationImpl
                                      |
                       /--------------+-------------------\
                       |                                  |
            GtkApplicationImplDBus              GtkApplicationImplQuartz
                       |
           /-----------+-----------------\
           |                             |
  GtkApplicationImplX11      GtkApplicationImplWayland

GtkApplicationImpl itself is essentially a bunch of vfuncs that serve as
hooks for various things that the platform-specific backends may be
interested in doing (startup, shutdown, managing windows, inhibit, etc.)

With this change, all platform specific code has been removed from
gtkapplication.c and gtkapplicationwindow.c (both of which are now free
of #ifdefs, except for a UNIX-specific use of GDesktopAppInfo in
gtkapplicationwindow.c).

Additionally, because of the movement of the property-setting code out
of GtkApplicationWindow, the _GTK_APPLICATION_ID properties (and
friends) will be set on non-GtkApplicationWindows, such as dialogs.

https://bugzilla.gnome.org/show_bug.cgi?id=720550

12 years agobloatpad: test inhibit
Ryan Lortie [Sun, 15 Dec 2013 02:36:27 +0000 (21:36 -0500)]
bloatpad: test inhibit

Add an inhibit for logout when there is context in the text buffer.

12 years agoFix up default csd titlebars
Matthias Clasen [Mon, 16 Dec 2013 18:39:36 +0000 (13:39 -0500)]
Fix up default csd titlebars

We were forgetting to show close buttons, and the spacing
was wrong, too.

12 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 16 Dec 2013 18:01:36 +0000 (20:01 +0200)]
Updated Hebrew translation

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
12 years agogdkwindow: Handle references in "update_windows" list correctly
Marek Kasik [Thu, 12 Dec 2013 14:02:19 +0000 (15:02 +0100)]
gdkwindow: Handle references in "update_windows" list correctly

Since update_windows list is a static variable in GdkWindow.c which
contains pointers to windows which needs to be updated, it can happen
that it contains a pointer to a window even after quit from a gtk_main().
If another gtk_main() is called in the same process it tries to process
windows in the list which leads to a crash.
Correct reference count handling of added windows prevents such applications
from crash.

https://bugzilla.gnome.org/show_bug.cgi?id=711552

12 years agoabout dialog: add docs for new GtkLicense values
William Jon McCann [Mon, 16 Dec 2013 16:49:02 +0000 (11:49 -0500)]
about dialog: add docs for new GtkLicense values

12 years agoabout dialog: differentiate GPL "or later" versions
William Jon McCann [Mon, 16 Dec 2013 16:06:24 +0000 (11:06 -0500)]
about dialog: differentiate GPL "or later" versions

https://bugzilla.gnome.org/show_bug.cgi?id=720410

12 years agoGtkHeaderBar: Center buttons
Matthias Clasen [Sun, 15 Dec 2013 03:32:11 +0000 (22:32 -0500)]
GtkHeaderBar: Center buttons

Header bars can get taller than the buttons require, and we don't
want them to extend all the way. Center them instead.

12 years agoGtkHeaderBar: fix flipping of window controls
Matthias Clasen [Sat, 14 Dec 2013 23:30:10 +0000 (18:30 -0500)]
GtkHeaderBar: fix flipping of window controls

We were not keepign the separators at the inside.

12 years agoprinting: Add missing strings back for translation
Marek Kasik [Wed, 11 Dec 2013 16:48:17 +0000 (17:48 +0100)]
printing: Add missing strings back for translation

There are string in gtkprintunixdialog.ui marked for translation
which are not in gtkprintunixdialog.ui.h.

https://bugzilla.gnome.org/show_bug.cgi?id=708907

12 years agoprinting: Don't double free connection to CUPS
Marek Kasik [Thu, 12 Dec 2013 17:11:39 +0000 (18:11 +0100)]
printing: Don't double free connection to CUPS

Don't call httpClose() on http connections which are created
outside of GtkCupsRequest in GtkCupsRequest's functions.

https://bugzilla.gnome.org/show_bug.cgi?id=720338

12 years agoScaleButton: make the popup transient to the button's window
Emilio Pozuelo Monfort [Wed, 11 Dec 2013 14:49:08 +0000 (15:49 +0100)]
ScaleButton: make the popup transient to the button's window

Fixes the popup positioning on wayland.

https://bugzilla.gnome.org/show_bug.cgi?id=720256

12 years agoGtkIMContextSimple: Update compose table
Takao Fujiwara [Sat, 19 Oct 2013 14:04:27 +0000 (23:04 +0900)]
GtkIMContextSimple: Update compose table

This adds Multi_key + f + i, as well as other sequences,
mainly Greek.

https://bugzilla.gnome.org/show_bug.cgi?id=710510

12 years agogdkwindow: Use GdkWindowHints instead of guint for flags
Bastien Nocera [Thu, 12 Dec 2013 18:29:03 +0000 (19:29 +0100)]
gdkwindow: Use GdkWindowHints instead of guint for flags

https://bugzilla.gnome.org/show_bug.cgi?id=720342

12 years agoFix a compiler warning
Matthias Clasen [Sat, 14 Dec 2013 01:05:03 +0000 (20:05 -0500)]
Fix a compiler warning

Don't return without a value from a non-void function.

12 years agowindow: Sanitize size hint computation
Benjamin Otte [Sat, 14 Dec 2013 00:15:06 +0000 (01:15 +0100)]
window: Sanitize size hint computation

We don't want the maximum size to be smaller than the minimum size. Not
just because it's wrong but also because when this happens the rest of
GTK gets mighty confused and infloops resizing to min-size and
max-size in turns causing a flickering window. Well, at least if you
run X without a window manager. Or your window manager hasn't finished
starting up.

Private RHEL bug finding this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1035409

12 years agoclipboard: Don't crash when data is requested from NULL window
Benjamin Otte [Fri, 13 Dec 2013 15:22:04 +0000 (16:22 +0100)]
clipboard: Don't crash when data is requested from NULL window

This could happen if data was requested from a separate screen now that
multi-screen is no longer supported.

Ideally, we'd want to support copying to other screens, but that
requires solving in GDK as that's X-specific so cannot be well
abstracted by GDK (without the reintroduction of multiple screens).

https://bugzilla.gnome.org/show_bug.cgi?id=719314

12 years agogtk-demo: Make double-click work again
Benjamin Otte [Fri, 13 Dec 2013 15:01:18 +0000 (16:01 +0100)]
gtk-demo: Make double-click work again

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 13 Dec 2013 16:23:01 +0000 (17:23 +0100)]
Updated Spanish translation

12 years agoMake app menu fallback a bit more reliable
Matthias Clasen [Fri, 13 Dec 2013 06:19:12 +0000 (01:19 -0500)]
Make app menu fallback a bit more reliable

If the theme has no 'menu' control in the window decorations,
show the menubar after all.

12 years agoheaderbar: Don't add hidden widgets
Jasper St. Pierre [Fri, 13 Dec 2013 06:11:27 +0000 (01:11 -0500)]
headerbar: Don't add hidden widgets

This is a much simpler fix.

12 years agoRevert "GtkHeaderBar: don't show dangling separators"
Jasper St. Pierre [Fri, 13 Dec 2013 06:09:42 +0000 (01:09 -0500)]
Revert "GtkHeaderBar: don't show dangling separators"

This reverts commit a33e5748db44fc9f73e6411082a7a6ff7abaab08.

12 years agoAvoid double app menu fallback
Matthias Clasen [Fri, 13 Dec 2013 06:00:13 +0000 (01:00 -0500)]
Avoid double app menu fallback

Both GtkApplicationWindow and GtkHeaderBar listen for changes
of the gtk-shell-shows-app-menu setting, so they need to somehow
coordinate who is going to take action and show a fallback.
We prefer the menu button in the title over the menubar, so
let GtkApplicationWindow opt out if it finds that the header bar
has been configured to show window controls.

12 years agoDrop a reference to nonexisting API
Matthias Clasen [Fri, 13 Dec 2013 05:59:00 +0000 (00:59 -0500)]
Drop a reference to nonexisting API

The GtkApplicationWindow documentation had a reference
to gtk_header_bar_set_show_fallback_app_menu(). That
function no longer exists, so drop it.

12 years agoGtkHeaderBar: don't show dangling separators
Matthias Clasen [Fri, 13 Dec 2013 05:47:35 +0000 (00:47 -0500)]
GtkHeaderBar: don't show dangling separators

If we don't have a window icon, we hide the titlebar_icon,
we still add it, so we can't simply go by the number of
children when deciding whether to show the separator or
now. Instead, update the separator visibility as we create
the various buttons.

12 years agoMake window icons work in GtkHeaderBar
Matthias Clasen [Fri, 13 Dec 2013 05:39:59 +0000 (00:39 -0500)]
Make window icons work in GtkHeaderBar

12 years agotesttitlebar: Set a window icon
Matthias Clasen [Fri, 13 Dec 2013 05:38:36 +0000 (00:38 -0500)]
testtitlebar: Set a window icon

This reveals that GtkHeaderBar does not pick up window icons
correctly for it menu button, currently.

12 years agogdk: add gdk_window_set_shadow_width()
Ryan Lortie [Fri, 13 Dec 2013 03:38:12 +0000 (22:38 -0500)]
gdk: add gdk_window_set_shadow_width()

And deprecate the X11-specific version of it.

We call this new API _set_shadow_width() and not _set_frame_extents()
because we already have a gdk_window_get_frame_extents() with a
different meaning and different type of value.

https://bugzilla.gnome.org/show_bug.cgi?id=720374

12 years agoheaderbar: Respect the show-close-button property
Jasper St. Pierre [Fri, 13 Dec 2013 02:36:36 +0000 (21:36 -0500)]
headerbar: Respect the show-close-button property

12 years agowindow: Update decorations when updating state
Jasper St. Pierre [Fri, 13 Dec 2013 02:40:07 +0000 (21:40 -0500)]
window: Update decorations when updating state

This fixes the maximize button not updating...

12 years agotesttitlebar: Fix initial values
Matthias Clasen [Fri, 13 Dec 2013 02:18:11 +0000 (21:18 -0500)]
testtitlebar: Fix initial values

Make sure that the controls show the initial values fo the
headerbar properties, not the other way around.

12 years agotesttitlebar: more tests
Matthias Clasen [Fri, 13 Dec 2013 02:12:44 +0000 (21:12 -0500)]
testtitlebar: more tests

Turn this into a GtkApplication with an app menu.
Allow to override the gtk-shell-shows-app-menu setting
and the decoration-button-layout style property.

12 years agoheaderbar: Support all kinds of CSD decorations
Jasper St. Pierre [Wed, 11 Dec 2013 06:26:34 +0000 (01:26 -0500)]
headerbar: Support all kinds of CSD decorations

Move the gtkwindow.c CSD code into GtkHeaderBar, and make it triggerable
by the show-close-button property, and remove shows-fallback-app-menu.

https://bugzilla.gnome.org/show_bug.cgi?id=720233

12 years agoGtkHeaderBar: treat "" as 'no subtitle'
Matthias Clasen [Fri, 13 Dec 2013 00:24:56 +0000 (19:24 -0500)]
GtkHeaderBar: treat "" as 'no subtitle'

This is one of the few cases where it makes some sense to blur
the line between and empty string and NULL: without this, it is
hard to reset the subtitle e.g. from a builder file. And we
have the has-subtitle property now to enforce subtitle size
allocation independently.

12 years agoGtkFileChooser: Don't fill location_entry if we just populated the file list
Volker Sobek [Thu, 12 Dec 2013 23:41:00 +0000 (17:41 -0600)]
GtkFileChooser: Don't fill location_entry if we just populated the file list

Only fill the location entry with the file name of the tree view's
selected file when the selection was done by the user.

When the file chooser's action is GTK_FILE_CHOOSER_ACTION_OPEN, it
selects the first file in the tree view once loading has finished. For
this case we don't want it to insert the file name in the location
entry, as it hinders efficient navigation using the location entry. To
achieve this, use a priv flag to keep track of whether the
selection-changed signal was caused by the file chooser itself.

https://bugzilla.gnome.org/show_bug.cgi?id=386569

12 years agoMake testtitlebar more testy
Matthias Clasen [Thu, 12 Dec 2013 21:55:59 +0000 (16:55 -0500)]
Make testtitlebar more testy

Now that the nice titlebar example is in gtk3-demo, we can
use testtitlebar as an actual testbed for headerbar stuff.

This immediately reveals size allocation issues when titlebar
widgets change size.

12 years agogtk-demo: Use title case consistently
Matthias Clasen [Thu, 12 Dec 2013 21:21:59 +0000 (16:21 -0500)]
gtk-demo: Use title case consistently

12 years agoAdd a header bar example to gtk-demo
Matthias Clasen [Thu, 12 Dec 2013 21:09:34 +0000 (16:09 -0500)]
Add a header bar example to gtk-demo

This is basically standalone the testtitlebar example, turned
into a demo.

12 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 12 Dec 2013 10:17:42 +0000 (11:17 +0100)]
Updated Spanish translation

12 years agotesttitlebar: Fix -Wunused-variable warning
Volker Sobek [Thu, 12 Dec 2013 01:07:24 +0000 (02:07 +0100)]
testtitlebar: Fix -Wunused-variable warning

GtkWidget *title is no longer used.

https://bugzilla.gnome.org/show_bug.cgi?id=720296

12 years agoGtkFileChooserDefault: Remove unused struct field
Volker Sobek [Wed, 11 Dec 2013 23:34:42 +0000 (00:34 +0100)]
GtkFileChooserDefault: Remove unused struct field

The field changing_folder is no longer used anywhere.

https://bugzilla.gnome.org/show_bug.cgi?id=720293

12 years agoheaderbar: Remove unused private API
Jasper St. Pierre [Wed, 11 Dec 2013 06:28:28 +0000 (01:28 -0500)]
headerbar: Remove unused private API

Don't remove gtkheaderbarprivate.h, even though it's empty,
since we'll add more to it soon.

https://bugzilla.gnome.org/show_bug.cgi?id=720233

12 years agowayland: Fix order of xdg-shell requests
Jasper St. Pierre [Thu, 12 Dec 2013 00:27:58 +0000 (19:27 -0500)]
wayland: Fix order of xdg-shell requests

12 years agoUpdated Hebrew translation
Yosef Or Boczko [Wed, 11 Dec 2013 11:37:38 +0000 (13:37 +0200)]
Updated Hebrew translation

12 years agoUpdated Galician translations
Fran Diéguez [Thu, 28 Nov 2013 23:35:40 +0000 (00:35 +0100)]
Updated Galician translations

12 years agoGettext comment for "default:LTR" must be before the string
Jehan [Wed, 11 Dec 2013 01:01:48 +0000 (14:01 +1300)]
Gettext comment for "default:LTR" must be before the string

https://bugzilla.gnome.org/show_bug.cgi?id=720096

12 years agoSimplify a check
Matthias Clasen [Wed, 11 Dec 2013 04:19:36 +0000 (23:19 -0500)]
Simplify a check

Whenever titlebar is set, title_box is pointing to the
same widget, so we can just always use title_box here.
Pointed out by Jasper St. Pierre.

12 years agoTrivial typo fix
Matthias Clasen [Wed, 11 Dec 2013 04:02:33 +0000 (23:02 -0500)]
Trivial typo fix

12 years agoUse ::has-subtitle in testtitlebar
Matthias Clasen [Wed, 11 Dec 2013 04:00:04 +0000 (23:00 -0500)]
Use ::has-subtitle in testtitlebar

This also gets simplified.

12 years agoUse ::has-subtitle when constructing CSD titlebars
Matthias Clasen [Wed, 11 Dec 2013 03:58:57 +0000 (22:58 -0500)]
Use ::has-subtitle when constructing CSD titlebars

GtkWindow was constructing a custom title label to
avoid the size reservation for a subtitle. This is
now easier with the ::has-subtitle property.

12 years agoGtkHeaderBar: Add a ::has-subtitle property
Matthias Clasen [Wed, 11 Dec 2013 03:57:13 +0000 (22:57 -0500)]
GtkHeaderBar: Add a ::has-subtitle property

It is a fairly common case to just want a title, and not
reserve extra space for a subtitle. This is much easier
to get right by setting a boolean property than by
constructing a custom title widget.

12 years agoFix a segfault in the event axes demo
Matthias Clasen [Wed, 11 Dec 2013 02:05:02 +0000 (21:05 -0500)]
Fix a segfault in the event axes demo

Seems that pointer_info can be NULL, after all.

12 years agoUpdate headerbar title from window title
Matthias Clasen [Wed, 11 Dec 2013 01:45:42 +0000 (20:45 -0500)]
Update headerbar title from window title

This removes a possible source of confusion in our API.
The title is now synchronized both ways between the window
and the headerbar.

https://bugzilla.gnome.org/show_bug.cgi?id=720067

12 years agoSync the window title initially
Matthias Clasen [Tue, 10 Dec 2013 23:44:26 +0000 (18:44 -0500)]
Sync the window title initially

When setting a custom titlebar that happens to be a GtkHeaderBar,
we connect to notify::title to pick up title changes on the headerbar,
but we forgot to sync the title initially. Fix that.

12 years agoDisconnect signal handlers
Matthias Clasen [Tue, 10 Dec 2013 23:21:58 +0000 (18:21 -0500)]
Disconnect signal handlers

We connect to notify::title on app-provided titlebars, but
we forgot to disconnect the signal handler when unsetting
the titlebar.

12 years agoAdd a function to determine the text direction
Matthias Clasen [Tue, 10 Dec 2013 21:27:24 +0000 (16:27 -0500)]
Add a function to determine the text direction

This function can be used in the rare cases where the locale
has to be changed after gtk_init(). Based on a patch
by Jehan <jehan@girinstud.io>.

https://bugzilla.gnome.org/show_bug.cgi?id=720096

12 years agodemo: only set transient if demo returns a toplevel
William Jon McCann [Mon, 9 Dec 2013 08:55:08 +0000 (09:55 +0100)]
demo: only set transient if demo returns a toplevel

12 years agodemo: put run button on the left
William Jon McCann [Mon, 9 Dec 2013 08:26:08 +0000 (09:26 +0100)]
demo: put run button on the left

It is a bit annoying to have to go over to the right side to click it.

12 years agowayland: Update to latest xdg-shell.xml
Jasper St. Pierre [Sat, 7 Dec 2013 18:19:59 +0000 (13:19 -0500)]
wayland: Update to latest xdg-shell.xml

12 years agowayland: Make sure to call use_unstable_version
Jasper St. Pierre [Sat, 7 Dec 2013 18:14:36 +0000 (13:14 -0500)]
wayland: Make sure to call use_unstable_version

12 years agobutton: Allow :hover on insensitive buttons
Benjamin Otte [Sat, 7 Dec 2013 00:29:56 +0000 (01:29 +0100)]
button: Allow :hover on insensitive buttons

You can still hover a mouse on insensitive elements; it's up to the
theme to disable that.
This is in line with the HTML/CSS interpretation of :hover.

Insensitive elements still cannot be clicked.

https://bugzilla.gnome.org/show_bug.cgi?id=719486

12 years agogdk: Add some return_if_fail() warnings
Benjamin Otte [Fri, 6 Dec 2013 18:21:27 +0000 (19:21 +0100)]
gdk: Add some return_if_fail() warnings

so we have a better chance of catching the correct cause of bugs like

https://bugzilla.gnome.org/show_bug.cgi?id=719977

12 years agofilechooser: Don't crash if invalid thumbnails exist
Benjamin Otte [Fri, 6 Dec 2013 18:15:24 +0000 (19:15 +0100)]
filechooser: Don't crash if invalid thumbnails exist

Failing to load a thumbnail returns a NULL pixbuf. Since the hidpi
patches this wasn't checked when creating the surface. Result: assertion
failure.

https://bugzilla.gnome.org/show_bug.cgi?id=719977

12 years agogtkradio*: add (allow-none) annotations were appropriate
Torsten Schönfeld [Fri, 6 Dec 2013 22:53:41 +0000 (23:53 +0100)]
gtkradio*: add (allow-none) annotations were appropriate

https://bugzilla.gnome.org/show_bug.cgi?id=679563

12 years agodemo: Add demo for advanced event information management
Carlos Garnacho [Wed, 27 Nov 2013 16:53:33 +0000 (17:53 +0100)]
demo: Add demo for advanced event information management

This demo condenses the essentials of advanced management of
input events. Depending on the information available in input events,
this demo will try to represent as much information as possible for
those.

https://bugzilla.gnome.org/show_bug.cgi?id=719987

12 years agodocs: Add a missing Since: tag
Matthias Clasen [Thu, 5 Dec 2013 14:08:35 +0000 (09:08 -0500)]
docs: Add a missing Since: tag

12 years agoDon't distribute generated sources
Matthias Clasen [Thu, 5 Dec 2013 14:07:19 +0000 (09:07 -0500)]
Don't distribute generated sources

This was causing problems when building 3.10.6 against an older
wayland.

12 years agoGtkMenuItem: only set 'separator' class on the separator line
Lars Uebernickel [Wed, 4 Dec 2013 18:45:30 +0000 (19:45 +0100)]
GtkMenuItem: only set 'separator' class on the separator line

To make the separator line distinguishable from the widget's normal
border from css.

https://bugzilla.gnome.org/show_bug.cgi?id=719861

12 years agoFix make dist
Matthias Clasen [Thu, 5 Dec 2013 05:48:08 +0000 (00:48 -0500)]
Fix make dist

12 years agox11: Handle XINotifyPassiveGrab/Ungrab in focus events
Carlos Garnacho [Wed, 4 Dec 2013 11:49:02 +0000 (12:49 +0100)]
x11: Handle XINotifyPassiveGrab/Ungrab in focus events

The focus handling code is shared between core and XI2 implementations,
so just handle the extra XI2 types for passive grabs. Those must be dealt
with in the same way than active grabs. Focus events with this crossing
mode could happen currently through the XIGrabFocusIn passive grab.

https://bugzilla.gnome.org/show_bug.cgi?id=719762

12 years agox11: Handle all XI2 crossing mode values in switch
Carlos Garnacho [Wed, 4 Dec 2013 11:34:31 +0000 (12:34 +0100)]
x11: Handle all XI2 crossing mode values in switch

This fixes potential assertions if a GTK+ app gets to receive
a XINotifyPassiveGrab/Ungrab pointer crossing event, currently
triggerable by XIGrabEnter passive grabs.

http://bugzilla.gnome.org/show_bug.cgi?id=719762